package cn.tedu.baidashi.service.Impl;

import cn.tedu.baidashi.mapper.ZoneMapper;
import cn.tedu.baidashi.model.Zone;
import cn.tedu.baidashi.service.IZoneService;
import cn.tedu.baidashi.vo.ZoneVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tedu.cn
 * @since 2022-02-16
 */
@Service
public class ZoneServiceImpl extends ServiceImpl<ZoneMapper, Zone> implements IZoneService {
    @Autowired
    ZoneMapper zoneMapper;
    @Override
    public List<ZoneVo> getZoneNames(String city_name) {
        List<ZoneVo> zones=zoneMapper.findZoneNameByCityName(city_name);
        return zones;
    }

}
